/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers.process;

import controllers.entity.Children;
import java.util.List;
import models.ChildrenDAO;

/**
 *
 * @author HoaDuyen
 */
public class ChildrenProcess {
    private static ChildrenDAO childrenDAO=new ChildrenDAO();
     public List<Children> getlAllChildren(int macanbo) { 
        return childrenDAO.getAllChildrenByMaCanBo(macanbo);
     }
      public static boolean insertChildren(Children x) {
        return childrenDAO.InsertChildren(x);
     }
      public static boolean updateChildren(Children x){
          return childrenDAO.UpDateChildren(x);
      }
      
      public static boolean deleteChildrenByMaConCai(String MaConCai){
          return childrenDAO.DeleteChildrenByMaConCai(MaConCai);
      }
      public static int getCountConCai(){
          return childrenDAO.getCountCon();
      }
}
